<?php

/***  DOCUMENTATION LAYER

LampBack XP Test

Last Update: Jun 2007
	
NOTES
	make sure to set correct paths, login, and database info below
	
***/

$_tx0 = microtime();

// Test Name
$test_name = 'lampback xp test';

// Include Files
require_once('../lampback.class.php');

// Variable Declarations
#$foo = 'bar';


// Script
if ( 1 )
{
	// create LampBack object
	$LampBack = new LampBack($debug=1);
	
	// settings
	$LampBack->mysqldump_path = 'C:\\PATH\\mysql\\bin\\mysqldump.exe';
	$LampBack->db_user = 'USER';
	$LampBack->db_pass = 'PASS';
	$LampBack->mail_to = 'user@gmail.com';
	$LampBack->mail_from = 'klenwell-lampdump-client';
	$LampBack->tar_on = 1;
	$LampBack->mail_on = 1;
	$LampBack->save_files = 0;
	
	// database settings
	$LampBack->DATABASE['DBNAME'] = '*';

	// back up
	if ( $dbs_backed = $LampBack->export() )
		$LampBack->print_d('LampBack complete -- no problems detected', 'green');
	else
		$LampBack->print_d('there was a problem');
}


// Footer
$_txn = microtime();
$stx = number_format(((substr($_txn,0,9)) + (substr($_txn,-10)) - (substr($_tx0,0,9)) - (substr($_tx0,-10))),4); 
echo "<h6>test '$test_name' complete in $stx s</h6>";

?>
